/*
 * 类目 基础管理 事务管理  捐赠维护
 */
import { getRequest, postRequest } from '/@/lib/axios';

export const DonationApi = {
    // 添加类目 
    addCategory: (param) => {
        return postRequest('/category/add', param);
    },
    // GET
    // 删除类目 
    deleteCategoryById: (categoryId) => {
        return getRequest(`/category/delete/${categoryId}`);
    },
    // 查询类目层级树 
    queryCategoryTree: (param) => {
        return postRequest('/category/tree', param);
    },
    // 更新类目 
    updateCategory: (param) => {
        return postRequest('/category/update', param);
    },

    // 捐赠用途维护列表 
    foundationList: (param) => {
        return postRequest('/foundation/blfunduse/list', param);
    },
    // 捐赠用途维护增加  /foundation/blfunduse/save
    foundationAdd: (param) => {
        return postRequest('/foundation/blfunduse/save', param);
    },
    // 捐赠维护 修改  /foundation/blfunduse/update
    foundationUpdate: (param) => {
        return postRequest('/foundation/blfunduse/update', param);
    },
    // 删除    /foundation/blfunduse/delete
    foundationDelete: (categoryId) => {
        return postRequest(`/foundation/blfunduse/delete`, categoryId);
    },
};
